package com.hk.common.runner;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.stream.Collectors;


/**
 * App启动自动处理相关事情
 */
@Component
public class AppRunner implements CommandLineRunner {

    private Logger log = LoggerFactory.getLogger(AppRunner.class);


    @Value("${spring.profiles.active}")
    private String activeProfile;

    @Override
    public void run(String... args) throws Exception {

        log.info(">>>>>>>>>>>>>>>>AppRunner运行完成!>>>>>>>>>>>>>>>>");
    }


}
